<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="p" value="${param}"></c:set>

<div class="easyui-layout" style="width: 100%; height: 100%;" fit="true">
	<div data-options="region:'center',title:'',split:true" style="height: 100%;">
		<form id="form" method="post">
			<table class="detailTable">
				<tr>
					<th style="width: 120px;">类别:</th>
					<td><input class="easyui-validatebox" name="typeName" ></td>
					<th style="width: 120px;">来源:</th>
					<td><input class="easyui-validatebox" name="complaintWay" ></td>
				</tr>
				<tr>
					<th style="width: 120px;">标题:</th>
					<td colspan="3"><input class="easyui-validatebox" name="complaintTitle" style="width: 350px;"></td>
				</tr>
				<tr>
					<th style="width: 120px;">内容:</th>
					<td colspan="4"><textarea style="width:85%;height:70px;"  readonly="readonly"  name="complaintContent" id="complaint_Content"></textarea></td>
				</tr>
				<tr>
					<th style="width: 120px;">咨询人员:</th>
					<td><input class="easyui-validatebox" name="createUser"></td>
					<th style="width: 120px;">联系电话:</th>
					<td><input class="easyui-validatebox" name="connectPhone"></td>
				</tr>
				<tr>
					<th style="width: 120px;">回复状态:</th>
					<td><input type="checkbox" name="repplyStatus" value="1"></td>
					<th style="width: 120px;">状态:</th>
					<td><input type="checkbox" name="status" value="1"></td>
				</tr>
				
				<tr>
					<th style="width: 120px;">是否满意:</th>
					<td><input class="easyui-validatebox" name="isSatisfaction"></td>
					<th style="width: 120px;">咨询时间:</th>
					<td><input class="easyui-validatebox" name="createDate"></td>
				</tr>
				</table>
		</form>
		
		
		
	</div>
</div>

<script type="text/javascript">
	$(function() {
		complaintId =<%=request.getParameter("complaintId")%>;
		if (complaintId != null) {
			//更新，获取数据并显示
			var param = {
				"complaintId" : complaintId
			};
			$.pmsAjax({
				url : '<c:url value="/complaint/searchEmBComplaint.do"/>',
				data : param,
				success : function(data) {
					if (data) {
						$('#form').form('load', data);
					} else {
						alertError(data.result);
					}
				}
			});
		}
	});
</script>